package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author smith
 * @since 2025-05-21
 */
public class Myorder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id - 主键
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 用户id
     */
    private Integer custId;

    /**
     * 菜品id
     */
    private Integer dishId;

    /**
     * 菜品名称
     */
    private String dishName;

    /**
     * 菜品图片
     */
    private String dishImg;

    /**
     * 菜品价格
     */
    private Float dishPrice;

    /**
     * 订单原始价格
     */
    private Float orderPrice;

    /**
     * 优惠券名称
     */
    private String couponName;

    /**
     * 我领取的优惠券id
     */
    private Integer mycouponId;

    /**
     * 优惠的价格
     */
    private Float couponPrice;

    /**
     * 下订单时间
     */
    private LocalDateTime orderCreateTime;

    /**
     * 修改订单的时间
     */
    private LocalDateTime orderUpdateTime;

    /**
     * 0: 已下订单，未支付	1：已支付	0:已下单，未支付，1：已支付，2：已取消
     */
    private String status;

    private String other1;

    private String other2;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public Integer getCustId() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }
    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }
    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }
    public String getDishImg() {
        return dishImg;
    }

    public void setDishImg(String dishImg) {
        this.dishImg = dishImg;
    }
    public Float getDishPrice() {
        return dishPrice;
    }

    public void setDishPrice(Float dishPrice) {
        this.dishPrice = dishPrice;
    }
    public Float getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Float orderPrice) {
        this.orderPrice = orderPrice;
    }
    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }
    public Integer getMycouponId() {
        return mycouponId;
    }

    public void setMycouponId(Integer mycouponId) {
        this.mycouponId = mycouponId;
    }
    public Float getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Float couponPrice) {
        this.couponPrice = couponPrice;
    }
    public LocalDateTime getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(LocalDateTime orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }
    public LocalDateTime getOrderUpdateTime() {
        return orderUpdateTime;
    }

    public void setOrderUpdateTime(LocalDateTime orderUpdateTime) {
        this.orderUpdateTime = orderUpdateTime;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }
    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }

    @Override
    public String toString() {
        return "Myorder{" +
            "orderId=" + orderId +
            ", orderNumber=" + orderNumber +
            ", custId=" + custId +
            ", dishId=" + dishId +
            ", dishName=" + dishName +
            ", dishImg=" + dishImg +
            ", dishPrice=" + dishPrice +
            ", orderPrice=" + orderPrice +
            ", couponName=" + couponName +
            ", mycouponId=" + mycouponId +
            ", couponPrice=" + couponPrice +
            ", orderCreateTime=" + orderCreateTime +
            ", orderUpdateTime=" + orderUpdateTime +
            ", status=" + status +
            ", other1=" + other1 +
            ", other2=" + other2 +
        "}";
    }
}
